
#ifndef MAIN_H
#define MAIN_H
/*---------------------------------------------------
*		Universal include files
----------------------------------------------------*/
#include "stm32f1xx_hal.h"
#include "cmsis_os.h"
/*---------------------------------------------------
*		config aliases for GPIOs
----------------------------------------------------*/
#define pinLED4 GPIOB,GPIO_PIN_1
#define pinLED3 GPIOB,GPIO_PIN_0
#define pinLED2 GPIOC,GPIO_PIN_5
#define pinLED1 GPIOC,GPIO_PIN_4

/*---------------------------------------------------
*		Declaration of global structures,enums
----------------------------------------------------*/
typedef struct{
uint32_t throttleRaw;
uint32_t rollRaw;
uint32_t pitchRAW;
uint32_t yawRaw;
}joystickRaw;

/*---------------------------------------------------
*		Configuration of app execution intervals 
----------------------------------------------------*/
#define JOYSTICK_READ_INTERVAL 20

#endif
